package com.ruoyi.printer.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单对象 printer_order
 * 
 * @author yanyi
 * @date 2023-07-13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class PrinterOrder implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type= IdType.ASSIGN_ID)
    private String orderId;

    /** 店铺 */
    @Excel(name = "店铺")
    private Long shopId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderStatus;

    /** 系统价格 */
    @Excel(name = "系统价格")
    private BigDecimal showPrice;

    /** 实付价格 */
    @Excel(name = "实付价格")
    private BigDecimal payPrice;

    /** 打印分数 */
    @Excel(name = "打印分数")
    private Long printNum;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "订单更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /** 订单完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "订单完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date completeTime;
}
